<div class="user-r-title clearfix">
    <div class="common-title f-l">
        <a href="javascript:void(0)" class="field">{$data.page_title}</a>
    </div>
</div>
<div class="user-r-content clearfix j-ajax-page">
    <div class="ajax-block" ms-important="vm-edit">
        <table class="uc-table" id="uc-table">
            <thead>
                <tr>
                    <th>编号</th>
                    <th>管理员帐号</th>
                    <th>管理员组</th>
                    <th>状态</th>
                    <th>登陆编号</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
                {foreach from="$data.list" item="l_item" }
                <tr>
                    <td>{$l_item.id}</td>
                    <td>{$l_item.name}</td>
                    <td>{$l_item.role_name}</td>
                    <td>{if $l_item.is_effect eq 0}无效{elseif $l_item.is_effect eq 1}有效{/if}</td>
                    <td>{$l_item.login_name}</td>
                    <td><a href="javascript:void(0)" ms-click="@editAdmin({$l_item.id})">编辑</a></td>
                </tr>
                {foreachelse}
                <tr>
                    <td colspan="7">
                        <span>暂无数据</span>
                    </td>
                </tr>
                {/foreach}                
                <tr>
                    <td colspan=8 style="text-align:left;">
                        <span class="btn btn-default mr-20" ms-click="@addAdmin">新增</span>
                    </td>
                </tr>
            </tbody>
        </table>
        <div class="m-page clearfix">
            <div class="m-page-con">
                {$data.page}
            </div>
        </div>
    </div>
</div>
